package com.jeeplus.test.education.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.test.education.domain.vo.EducationInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 数据访问层（DAO 层）
 *
 * @author 马贵东
 * @since 2025-03-05
 * `EducationInfo` 实体的持久化操作接口
 * 提供对教育信息表的增删改查（CRUD）操作
 */
@Mapper
public interface EducationInfoMapper {

    void insertEducationInfo(List<EducationInfoVo> list);

    List<Integer> selectEducationInfo(@Param("type") String type, @Param("value") String value);

    List<Integer> selectAdmissionInfo(String type,String suffix);

    void updateEducation(EducationInfoVo educationInfoVo);


    //分页查询
    Page<EducationInfoVo> getEducationInfoPage(EducationInfoVo educationInfoVo, Page<EducationInfoVo> page);



    int batchUpdateEducationInfo(@Param("ids") List<Integer> ids, @Param("dto") EducationInfoVo educationInfoVo);

    EducationInfoVo selectAdmissionInfoByRecord(EducationInfoVo educationInfoVo);
}
